
public class PositionArms implements Runnable{

	public void run() {

		noteOut(95,0,0,3);

		noteOut(48,0,0,0);

		wait(500);
		
		noteOut(90,0,0,2);

		noteOut(62,0,0,1);
		
		System.out.println("arms positioned");
		
		Main.score=new Score();
		Thread playbackThread = new Thread(Main.score);
		playbackThread.start();
	}
	
	public static void noteOut(int note, double velocity, double wait,int arm){
		int vel = (int) velocity;
		Object[] noteArray = new Object[3];
		noteArray[0] = arm;
		noteArray[1] = note;
		noteArray[2] = vel;
		OSC.main(noteArray,"/directControl");
	}
	public void wait(int waitTime)
	{
		try 
		{
			Thread.sleep(waitTime); 
		} 
		catch(InterruptedException e)
		{
		e.printStackTrace();
		}		
	}
}
